<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>用户添加</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="../../../dist/css/layui.css" media="all" />
	<style type="text/css">
		.layui-form-item .layui-inline{ width:33.333%; float:left; margin-right:0; }
		@media(max-width:1240px){
			.layui-form-item .layui-inline{ width:100%; float:none; }
		}
	</style>
</head>
<body class="childrenBody">
	<form class="layui-form" style="width:90%; margin-top: 10px;" lay-filter="formresh">
		<div class="layui-form-item">
			<label class="layui-form-label">登录名:</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input nickName"  lay-verify="required" placeholder="请输入登录名">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">用户名:</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input userName" lay-verify="required" placeholder="请输入用户名">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">密码:</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input password" lay-verify="required" placeholder="请输入密码">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">邮箱:</label>
			<div class="layui-input-block">
				<input type="text" class="layui-input userEmail" lay-verify="email" placeholder="请输入邮箱">
			</div>
		</div>
		<div class="layui-form-item" pane="">
			<label class="layui-form-label">角色:</label>

				<!--<input type="checkbox" name="like1[write]" lay-skin="primary" title="写作" checked="">-->
				<!--<input type="checkbox" name="like1[read]" lay-skin="primary" title="阅读">-->
				<!--<input type="checkbox" name="like1[game]" lay-skin="primary" title="游戏">-->

				<div class="layui-input-block" id="view" ></div>

		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">状态:</label>
			<div class="layui-input-block">
				<input type="radio" name="userStatus" value="1" title="开放" >
				<input type="radio" name="userStatus" value="0" title="禁用" checked="">
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="addUser">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
		    </div>
		</div>
	</form>

	<script id="role" type="text/html">
			{{#  layui.each(d.list, function(index, item){ }}
			<input type="checkbox"name="poetrytype" value="{{ item.id }}" lay-skin="primary" title="{{ item.name }}">
			{{#  }); }}
			{{#  if(d.list.length === 0){ }}
			无数据
			{{#  } }}
	</script>
	<script src="../../../libs/jquery.min.js"></script>
	<script type="text/javascript" src="../../../dist/layui.js"></script>
	<script type="text/javascript" src="../../../js/user/addUser.js"></script>
</body>
</html>